]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
magnifier: Fix DND when the magnifier is active
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 17 Nov 2010 10:08:24 +0000 (11:08 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 3 Dec 2010 19:38:25 +0000 (20:38 +0100)
Hide the zoom regions from pick so that they do not interfere with
the picking done by DND in search for _delegate objects.

https://bugzilla.gnome.org/show_bug.cgi?id=634560

js/ui/magnifier.js

index 472fdea59f923e7e6c7869669b7cb72aaf60f331..91a0e773f93f7ab447858daabaa0e24787ea1227 100644 (file)
@@ -896,6 +896,9 @@ ZoomRegion.prototype = {
         this._magView = new St.Bin({ style_class: 'magnifier-zoom-region', x_fill: true, y_fill: true });
         global.stage.add_actor(this._magView);
 
+        // hide the magnified region from CLUTTER_PICK_ALL
+        Shell.util_set_hidden_from_pick (this._magView, true);
+
         // Append a Clutter.Group to clip the contents of the magnified view.
         let mainGroup = new Clutter.Group({ clip_to_allocation: true });
         this._magView.set_child(mainGroup);